package com.seehope.printstream;

import java.io.FileWriter;
import java.io.IOException;
import java.io.PrintWriter;
import java.io.Writer;

public class Demo2 {

	public static void main(String[] args) {
		try {
			Writer writer = new FileWriter("c:/test4.txt");
			PrintWriter pw = new PrintWriter(writer);
			pw.println("Hello");
			pw.println(12345);
			pw.println(true);
			pw.flush();
		} catch (IOException e) {
			e.printStackTrace();
		}


	}

}
